package com.zqx.factory_method.factory;

import com.zqx.factory_method.product.DatabaseLogger;
import com.zqx.factory_method.product.Logger;
import lombok.extern.slf4j.Slf4j;

/**
 * description: 具体工厂角色
 * @author zqx
 * @date 2018/09/02
 */
@Slf4j
public class DatabaseLoggerFactory implements LoggerFactory {
    @Override
    public Logger createLogger() {

        Logger logger = new DatabaseLogger();
        return logger;
    }
}
